Class symantec.itools.awt.util.StatusScroller
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.util.StatusScroller

Object
   |
   +----symantec.itools.awt.util.StatusScroller

public class StatusScroller
extends Object
implements Runnable
Displays a scrolling message in the status window of a browser or applet viewer.

Version:
1.1, June 2, 1997
Author:
Symantec

Variable Index

 o context
The applet context that shows the status text.
 o delay
The time between the display of each character in milliseconds.
 o index
The zero-relative index of the original first character.
 o isRepeat
If true, the text will continue scrolling over and over.
 o isRightToLeft
If true, the text will scroll from the right to the left.
 o isScrollClean
If true, the text will scroll completely off before scrolling on again.
 o sslength
Status string length, in characters.
 o statusString
The string to scroll.
 o thread
The thread that handles scrolling the text.
 o wblength
Working buffer length, in characters.
 o workingBuffer
The string that gets scrolled.

Constructor Index

 o symantec.itools.awt.util.StatusScroller()
Constructs a StatusScroller.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a listener for all property change events.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a listener for all vetoable property change events.
 o clear()
Clears the status area.
 o getAutoStart()
 o getDelay()
Gets the time between the display of each character in milliseconds.
 o getRepeat()
 o getRightToLeft()
 o getScrollClean()
 o getString()
Gets the string being scrolled.
 o isAutoStart()
Gets whether scrolling will automatically start when the applet is loaded.
 o isRepeat()
Gets whether text will repeatedly scroll or just scroll once.
 o isRightToLeft()
Gets the direction the text will scroll.
 o isScrollClean()
Gets whether text will scroll completely off before scrolling on again.
 o makePadding(int)
Returns a String with howBig number of spaces as the content
 o removePropertyChangeListener(PropertyChangeListener)
Removes a listener for all property change events.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes a listener for all vetoable property change events.
 o run()
The body of the StatusScroller Thread.
 o scrollString()
Handles the manipulation of the string buffer to give the desired scrolling effect.
 o setAppletContext(AppletContext)
Sets the AppletContext that has the status area for scrolling text.
 o setAppletContext(Applet)
Sets the AppletContext that has the status area for scrolling text.
 o setAutoStart(boolean)
Controls whether scrolling will automatically start when the applet is loaded.
 o setDelay(int)
Sets the time between the display of each character in milliseconds.
 o setRepeat(boolean)
Controls whether text will repeatedly scroll or just scroll once.
 o setRightToLeft(boolean)
Controls the direction the text will scroll.
 o setScrollClean(boolean)
Controls whether text will scroll completely off before scrolling on again.
 o setString(String)
Sets the string to be scrolled in the browser or applet viewer.
 o start()
Starts the status text scrolling.
 o stop()
Stops the status text scrolling.
 o updateWorkingBuffer()
Updates the string buffer depending on the current settings.

Variables

 o context
protected java.applet.AppletContext context
The applet context that shows the status text.

 o delay
protected int delay
The time between the display of each character in milliseconds.

See Also:
setDelay, getDelay
 o index
protected int index
The zero-relative index of the original first character.

 o isRepeat
protected boolean isRepeat
If true, the text will continue scrolling over and over.

See Also:
setRepeat, isRepeat
 o isRightToLeft
protected boolean isRightToLeft
If true, the text will scroll from the right to the left.

See Also:
setRightToLeft, isRightToLeft
 o isScrollClean
protected boolean isScrollClean
If true, the text will scroll completely off before scrolling on again.

See Also:
setScrollClean, isScrollClean
 o sslength
protected int sslength
Status string length, in characters.

 o statusString
protected java.lang.String statusString
The string to scroll.

 o thread
protected java.lang.Thread thread
The thread that handles scrolling the text.

See Also:
start, stop
 o wblength
protected int wblength
Working buffer length, in characters.

 o workingBuffer
protected java.lang.StringBuffer workingBuffer
The string that gets scrolled.

Constructors

 o StatusScroller
public StatusScroller()
Constructs a StatusScroller. By default, the message (set by the setString() method) will scroll right-to-left, repeat, and will completely scroll off before scrolling on again.

See Also:
setString

Methods

 o addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for all property change events.

Parameters:
listener - the listener to add
See Also:
removePropertyChangeListener
 o addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
Adds a listener for all vetoable property change events.

Parameters:
listener - the listener to add
See Also:
removeVetoableChangeListener
 o clear
public void clear()
Clears the status area. Note: this does not clear the string to scroll, it just clears the status area in the current AppletContext.

 o getAutoStart
public boolean getAutoStart()
Note: getAutoStart() is deprecated.

See Also:
isAutoStart
 o getDelay
public int getDelay()
Gets the time between the display of each character in milliseconds.

Returns:
the delay, in milliseconds
See Also:
setDelay
 o getRepeat
public boolean getRepeat()
Note: getRepeat() is deprecated.

See Also:
isRepeat
 o getRightToLeft
public boolean getRightToLeft()
Note: getRightToLeft() is deprecated.

See Also:
isRightToLeft
 o getScrollClean
public boolean getScrollClean()
Note: getScrollClean() is deprecated.

See Also:
isScrollClean
 o getString
public java.lang.String getString()
Gets the string being scrolled.

Returns:
the current scroll string
See Also:
setString
 o isAutoStart
public boolean isAutoStart()
Gets whether scrolling will automatically start when the applet is loaded.

Returns:
true if the text will start scrolling as soon as the applet is loaded, false if the text will not scroll until start() is called
See Also:
setAutoStart, start, stop
 o isRepeat
public boolean isRepeat()
Gets whether text will repeatedly scroll or just scroll once.

Returns:
true if the text will scroll over and over, false if the text will scroll off and back on, then stop
See Also:
setRepeat
 o isRightToLeft
public boolean isRightToLeft()
Gets the direction the text will scroll.

Returns:
true if the text will scroll right-to-left, false if the text will scroll left-to-right
See Also:
setRightToLeft
 o isScrollClean
public boolean isScrollClean()
Gets whether text will scroll completely off before scrolling on again.

Returns:
true if the text will scroll completely off before scrolling on again, false if the text will scroll without any gap
See Also:
setScrollClean
 o makePadding
protected java.lang.String makePadding(int howBig)
Returns a String with howBig number of spaces as the content

Parameters:
howBig - the requested number of spaces
Returns:
a String with the requested number of spaces
 o removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all property change events.

Parameters:
listener - the listener to remove
See Also:
addPropertyChangeListener
 o removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
Removes a listener for all vetoable property change events.

Parameters:
listener - the listener to remove
See Also:
addVetoableChangeListener
 o run
public void run()
The body of the StatusScroller Thread. This method is called by the Java Virtual Machine in response to a call to the start method of this object.

 o scrollString
protected java.lang.String scrollString()
Handles the manipulation of the string buffer to give the desired scrolling effect.

Returns:
the string to be displayed
See Also:
run, setRightToLeft, getRightToLeft
 o setAppletContext
public void setAppletContext(AppletContext c) throws PropertyVetoException
Sets the AppletContext that has the status area for scrolling text. Note: this overrides the automatically set AppletContext.

Parameters:
c - the new AppletContext
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
setAppletContext(java.applet.Applet)
 o setAppletContext
public void setAppletContext(Applet a) throws PropertyVetoException
Sets the AppletContext that has the status area for scrolling text. This version takes an Applet object and gets the needed AppletContext from that. Note: this overrides the automatically set AppletContext.

Parameters:
a - the Applet with the AppletContext to use
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
setAppletContext(java.applet.AppletContext)
 o setAutoStart
public void setAutoStart(boolean f) throws PropertyVetoException
Controls whether scrolling will automatically start when the applet is loaded.

Parameters:
f - if true the text will start scrolling as soon as the applet is loaded, if false the text will not scroll until start() is called
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
isAutoStart, start, stop
 o setDelay
public void setDelay(int d) throws PropertyVetoException
Sets the time between the display of each character in milliseconds. The minimum delay is 30 milliseconds.

Parameters:
d - the delay, in milliseconds
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
getDelay
 o setRepeat
public void setRepeat(boolean f) throws PropertyVetoException
Controls whether text will repeatedly scroll or just scroll once.

Parameters:
f - if true the text will scroll over and over, if false the text will scroll off and back on, then stop
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
isRepeat
 o setRightToLeft
public void setRightToLeft(boolean b) throws PropertyVetoException
Controls the direction the text will scroll.

Parameters:
b - the direction to scroll the text; true for right-to-left, false for left-to-right
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
getRightToLeft
 o setScrollClean
public void setScrollClean(boolean b) throws PropertyVetoException
Controls whether text will scroll completely off before scrolling on again.

Parameters:
b - if true the text will scroll completely off before scrolling on again, if false the text will scroll without any gap
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
isScrollClean
 o setString
public void setString(String s) throws PropertyVetoException
Sets the string to be scrolled in the browser or applet viewer.

Parameters:
s - the message to scroll
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
getString
 o start
public void start()
Starts the status text scrolling.

See Also:
stop, run
 o stop
public void stop()
Stops the status text scrolling.

See Also:
start
 o updateWorkingBuffer
protected void updateWorkingBuffer()
Updates the string buffer depending on the current settings.

See Also:
setScrollClean

All Packages  Class Hierarchy  This Package  Previous  Next  Index